<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TListView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_list_view.html">TListView</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_list_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TListView类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TListView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_list_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7d28322ad83b184481a3617f2a0e465f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a7d28322ad83b184481a3617f2a0e465f">TListView</a> (long nativeObj)</td></tr>
<tr class="separator:a7d28322ad83b184481a3617f2a0e465f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ea40bef34407b44c6985380d997567f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a7ea40bef34407b44c6985380d997567f">setItemHeight</a> (int item_height)</td></tr>
<tr class="separator:a7ea40bef34407b44c6985380d997567f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7f9f655fcb4d681f7503d2b38c466a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#aa7f9f655fcb4d681f7503d2b38c466a3">setDefaultItemHeight</a> (int default_item_height)</td></tr>
<tr class="separator:aa7f9f655fcb4d681f7503d2b38c466a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a919e11a47bf070a62fffdc64c4ad54a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a919e11a47bf070a62fffdc64c4ad54a0">setAutoHideScrollBar</a> (boolean auto_hide_scroll_bar)</td></tr>
<tr class="separator:a919e11a47bf070a62fffdc64c4ad54a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e15f8b3b6580e17229f0061580de789"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a6e15f8b3b6580e17229f0061580de789">reinit</a> ()</td></tr>
<tr class="separator:a6e15f8b3b6580e17229f0061580de789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a718438d7fdde2e2de103b931de1da453"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a718438d7fdde2e2de103b931de1da453">getItemHeight</a> ()</td></tr>
<tr class="separator:a718438d7fdde2e2de103b931de1da453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33b0faf5f388fb6521843aa50a3ad632"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a33b0faf5f388fb6521843aa50a3ad632">getDefaultItemHeight</a> ()</td></tr>
<tr class="separator:a33b0faf5f388fb6521843aa50a3ad632"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2db451e0c9869e269b00f33b290ae42"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#ac2db451e0c9869e269b00f33b290ae42">getAutoHideScrollBar</a> ()</td></tr>
<tr class="separator:ac2db451e0c9869e269b00f33b290ae42"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa1f766d887825aa898ee4fafe634f888"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_list_view.html">TListView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#aa1f766d887825aa898ee4fafe634f888">cast</a> (long nativeObj)</td></tr>
<tr class="separator:aa1f766d887825aa898ee4fafe634f888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a718f668698ed8be7688eb4d65762cdab"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a718f668698ed8be7688eb4d65762cdab">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a718f668698ed8be7688eb4d65762cdab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a312a32d0cdacd4016ec3911f93c7081d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_list_view.html">TListView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_list_view.html#a312a32d0cdacd4016ec3911f93c7081d">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a312a32d0cdacd4016ec3911f93c7081d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>列表视图控件。</p>
<p>列表视图控件是一个可以垂直滚动的列表控件。</p>
<p>如果不需要滚动，可以用view控件配置适当的layout参数作为列表控件。</p>
<p>列表视图中的列表项可以固定高度，也可以使用不同高度。请参考<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_vh.xml">变高列表项</a></p>
<p>列表视图控件的中可以有滚动条，也可以没有滚动条。 可以使用移动设备风格的滚动条，也可以使用桌面风格的滚动条。</p>
<p>list_view_t是widget\_t的子类控件，widget_t的函数均适用于list_view_t控件。</p>
<p>在xml中使用"list\_view"标签创建列表视图控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;-80&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;60&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">list_item</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;odd&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(rows=1,cols=0)&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">image</span> <span class="keyword">draw_type</span>=<span class="stringliteral">&quot;icon&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;earth&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">label</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;1.Hello AWTK !&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">switch</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;r:10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;60&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">label</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_item</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">scroll_view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_view</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>注意：列表项不是作为列表视图控件的直接子控件，而是作为滚动视图的子控件。 </p>
</blockquote>
<blockquote class="doxtable">
<p>更多用法请参考：[list_view_m.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_m.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_m.xml</a>)</p>
<p>在c代码中使用函数list_view_create创建列表视图控件。如：</p>
<p>用代码构造列表视图是比较繁琐的事情，最好用XML来构造。 如果需要动态修改，可以使用widget_clone来增加列表项，使用widget_remove_child来移出列表项。</p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框颜色等(一般情况不需要)。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a7d28322ad83b184481a3617f2a0e465f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d28322ad83b184481a3617f2a0e465f">&#9670;&nbsp;</a></span>TListView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TListView.TListView </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aa1f766d887825aa898ee4fafe634f888"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1f766d887825aa898ee4fafe634f888">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_list_view.html">TListView</a> awtk.TListView.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a312a32d0cdacd4016ec3911f93c7081d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a312a32d0cdacd4016ec3911f93c7081d">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_list_view.html">TListView</a> awtk.TListView.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为list_view对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>list_view对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>list_view对象。 </dd></dl>

</div>
</div>
<a id="a718f668698ed8be7688eb4d65762cdab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a718f668698ed8be7688eb4d65762cdab">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TListView.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建list_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ac2db451e0c9869e269b00f33b290ae42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2db451e0c9869e269b00f33b290ae42">&#9670;&nbsp;</a></span>getAutoHideScrollBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TListView.getAutoHideScrollBar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>如果不需要滚动条时，自动隐藏滚动条。 </p>

</div>
</div>
<a id="a33b0faf5f388fb6521843aa50a3ad632"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33b0faf5f388fb6521843aa50a3ad632">&#9670;&nbsp;</a></span>getDefaultItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TListView.getDefaultItemHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>列表项的缺省高度。如果item_height &lt;= 0 而且列表项自身的高度 &lt;= 0，则使用缺省高度。 </p>

</div>
</div>
<a id="a718438d7fdde2e2de103b931de1da453"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a718438d7fdde2e2de103b931de1da453">&#9670;&nbsp;</a></span>getItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TListView.getItemHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>列表项的高度。如果 item_height 0，所有列表项使用固定高度，否则使用列表项自身的高度。 </p>

</div>
</div>
<a id="a6e15f8b3b6580e17229f0061580de789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e15f8b3b6580e17229f0061580de789">&#9670;&nbsp;</a></span>reinit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TListView.reinit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>list_view重新初始化。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a919e11a47bf070a62fffdc64c4ad54a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a919e11a47bf070a62fffdc64c4ad54a0">&#9670;&nbsp;</a></span>setAutoHideScrollBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TListView.setAutoHideScrollBar </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>auto_hide_scroll_bar</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否自动隐藏滚动条。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_hide_scroll_bar</td><td>是否自动隐藏滚动条。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa7f9f655fcb4d681f7503d2b38c466a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7f9f655fcb4d681f7503d2b38c466a3">&#9670;&nbsp;</a></span>setDefaultItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TListView.setDefaultItemHeight </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>default_item_height</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置列表项的缺省高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">default_item_height</td><td>列表项的高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7ea40bef34407b44c6985380d997567f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ea40bef34407b44c6985380d997567f">&#9670;&nbsp;</a></span>setItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TListView.setItemHeight </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>item_height</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置列表项的高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item_height</td><td>列表项的高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TListView.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
